//
//  ALMusicCollectionReusable.m
//  阿里星球-音乐界面
//
//  Created by Mars_ZXB on 16/8/13.
//  Copyright © 2016年 BAT3. All rights reserved.
//

#import "ALMusicCollectionReusable.h"

@implementation ALMusicCollectionReusable

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        _nameLabel = [[UILabel alloc]initWithFrame:CGRectMake(CGRectGetWidth(self.frame) / 2 - 50, 0, 100, CGRectGetHeight(self.frame))];
        _nameLabel.textColor = [UIColor whiteColor];
        _nameLabel.font = [UIFont systemFontOfSize:17];
        _nameLabel.textAlignment = NSTextAlignmentCenter;
        
        _moreBtn = [UIButton buttonWithType:UIButtonTypeSystem];
        [_moreBtn setTitle:@"更多 >" forState:UIControlStateNormal];
        _moreBtn.frame = CGRectMake(CGRectGetWidth(self.frame) - 70, 0, 60, CGRectGetHeight(self.frame));
        [_moreBtn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
        _moreBtn.titleLabel.font = [UIFont systemFontOfSize:13];
        [self addSubview:_moreBtn];
        [self addSubview:_nameLabel];
    }
    return self;
}


@end
